package com.nsl.my_youlai.bbu_return.exception;

import lombok.Data;

@Data
public class EnumTransformException extends Exception{
    private String enumCnName;

    private String labelRangeAsString;

    public EnumTransformException(){

    };

    public EnumTransformException(String msg){
        super(msg);
    };

    public EnumTransformException(String enumCnName,String labelRangeAsString,String msg){
        super(msg);
        this.enumCnName=enumCnName;
        this.labelRangeAsString=labelRangeAsString;
    }
    public EnumTransformException(String enumCnName,String labelRangeAsString){
        this(enumCnName,labelRangeAsString,"枚举类型("+enumCnName+"）转换错误.");
    }

}
